Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor internal parameter cleaning #331

Merged
merged 18 commits into from
Jun 10, 2024
Merged

Conversation

joshwlambert
Copy link
Member

This PR removes the use of S3 dispatch to call internal distribution parameter cleaning functions and moves to using switch(). A bullet point is added to the design_principles.Rmd vignette on using S3 dispatch exclusively for exported functions.

The internal clean_epidist_params() is renamed with a dot prefix (.clean_epidist_params()). A bullet point is added to the design_principles.Rmd vignette on the use of dot prefixes for internal functions.

The .clean_epidist_params_*() distribution specific cleaning functions have been simplified thanks to having stricter parameter matching.

Documentation and unit tests have been updated where needed.

@joshwlambert joshwlambert added the internal Updates that only change internal functions label Jun 10, 2024
@joshwlambert joshwlambert merged commit 00ccde8 into main Jun 10, 2024
9 checks passed
@joshwlambert joshwlambert deleted the rm_internal_s3_dispatch branch June 10, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Updates that only change internal functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant